home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 15
/
Aminet 15 - Nov 1996.iso
/
Aminet
/
dev
/
basic
/
ace24dist.lha
/
ace24.lha
/
prgs
/
ShellUtils
/
diff.b
< prev
next >
Wrap
Text File
|
1996-09-10
|
503b
|
38 lines
'..show differences between two files.
deflng a-z
if argcount<>2 then
print "usage: ";arg$(0);" <file1> <file2>"
stop
end if
open "I",#1,arg$(1)
open "I",#2,arg$(2)
count=0
on break goto _exit
break on
while not eof(1) and not eof(2)
line input #1,x$
line input #2,y$
if x$<>y$ then
print "1: ";x$
print "2: ";y$
++count
end if
wend
_exit:
print
if count=1 then
print " 1 difference found."
else
print count;"differences found."
end if
close 1,2